package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.Dictionary;

public interface DictionaryMapper {
	/**
	 * 查询父节点
	 * @param offset 页号
	 * @param limit 每页条数
	 * @return
	 */
	public List<Dictionary> findList(@Param("pageStat")String offset,@Param("pageStop")String limit);
	
	public int checkDictionaryName(@Param("dictionaryName")String dictionaryName,@Param("dicId")int dicId);

	public int saveDictionaryParent(@Param("dictionary")Dictionary dictionary);

	public int saveDictionaryChile(@Param("dictionary")Dictionary dictionary);

	public List<Dictionary> findChildrenList(@Param("parentId") int parentId);
	
}
